import { req } from "../utils/req.js"

// 登录
export const loginApi = (params) => req('POST',"/user/login", params);
// 注册
export const registerApi = (params) => req('POST',"/user/register", params);
// 自动登录注册
export const registerApiHelp = (params) => req('POST',"/user/helperRegister", params);

// 获取邀请码
export const getInviteCodeApi = (params) => req('GET',"/user/getInvitCode/"+params.member_id);
// 获取图形验证码
export const getVerifyCodeApi = () => req('POST',"/user/tool/getVerifyCode", {} ,'arraybuffer');
// 发送短信
export const sendMsgApi = (params) => req('POST',"/user/tool/send/msg", params);
// 授权登陆
export const authorizedlogApi = (params) => req('POST',"/user/wechat/jscode2session", params);
//忘记密码
export const forgotPasswordApi = (params) => req('POST',"/user/user/forgetPassword", params);